package com.github.zuul.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 这里配置动态路由
 * Created by IntelliJ IDEA.
 * user:wangj
 * date:2018/7/22
 * Time: 20:38
 */
@Configuration
public class ZuulGateConfiguration {

    @Bean
    public CustomLimitKeyGenerator getRateLimitKeyGenerator(){
        return new CustomLimitKeyGenerator();
    }
}
